﻿1857.1.1 = {
	# Setup
	capital = 526 # Ryuku
	set_research_slots = 1

	### Economy
    add_ideas = generic_unemployment_idea
    set_variable = { unemployment_value_modifier = 0.1 }
    set_variable = { current_unemployment = 0.05 }
    clamp_variable = {
        var = current_unemployment
        min = 0
        max = 1
    }
    update_unemployment_modifier = yes
    add_to_variable = { money = 0.01 }

	# Laws & Ideas
	add_ideas = {
		#hos_is_leader
		pre_industrial_era
		agrarian
		#no_heir
		#absolute_monarchy

		closed_economy
		isolation
		army_spending_level_2
		taxation_level_1
		cl_legal

		#stagnation_growth
		border_control
		extensive_conscription
		slavery
		absolutism

		#no_constitution
		no_elections

		privileged_education
		state_religion
		#religion_shinto

		social_spending_level_1
		law_spending_level_4
		road_spending_level_1
		navy_spending_level_1
		research_spending_level_1


		RYU_the_veil_of_independance
		RYU_major_maritime_commerce_hub
	}

	# Technology
	eoanbsys_technology_setup_developed_asia_1857 = yes

	# Army & Equipment
	RYU = {
		load_oob = "RYU_1857"
		add_equipment_to_stockpile = { type = convoy amount = 13 producer = RYU }

		add_equipment_to_stockpile = { type = infantry_equipment_rifle_0 amount = 500 producer = RYU }
		add_equipment_to_stockpile = { type = uniform_equipment_0 amount = 500 producer = RYU }

		create_equipment_variant = {
			name = "Early Gunboat Class"
			type = ship_hull_gunboat_0
			name_group = GER_CA_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_cannon_battery_0
				fixed_ship_fire_control_system_slot = fire_control_system_0
				fixed_ship_engine_slot = ship_engine_sail_1
				fixed_ship_armor_slot = ship_armor_capital_hardwood_0
				mid_1_custom_slot = ship_cannon_battery_0
				mid_2_custom_slot = ship_cannon_battery_0
			}
		}
	}
	# Politics
	RYU = {
		set_politics = { ruling_party = autocracy }
		set_country_flag = Oceania_industrializing
		add_to_variable = { var = ryu_prosperity_mechanic value = 15 }

		#Favored
		set_variable = { most_favoured_country = SAT.id }
			add_opinion_modifier = { target = TSH modifier = RYU_satsuma_vassal }
			reverse_add_opinion_modifier = { target = TSH modifier = RYU_satsuma_vassal }
			add_opinion_modifier = { target = SAT modifier = RYU_satsuma_vassal }
			reverse_add_opinion_modifier = { target = SAT modifier = RYU_satsuma_vassal }
			add_opinion_modifier = { target = CHI modifier = RYU_qing_tributary }
			reverse_add_opinion_modifier = { target = CHI modifier = RYU_qing_tributary }
			add_opinion_modifier = { target = LAN modifier = RYU_qing_tributary }
			reverse_add_opinion_modifier = { target = LAN modifier = RYU_qing_tributary }

		set_popularities = {
			anarchism = 0
			ideology_social_liberalism = 0
			ideology_radical_socialism = 0
			social_egalitarianism = 0
			centrism = 0
			traditional_conservatism = 0
			radical_democracy = 0
			chauvinist_populism = 0
			autocracy = 100
			fundamentalism = 0
		}

		create_country_leader = {
			name = "Sho Tai"
			desc = "POLITICS_GEORGE_V_DESC"
			picture = "gfx/leaders/RYU/Portrait_RYU_Sho_Tai.dds"
			expire = "1900.1.1"
			ideology = despotism
			traits = {

			}
		}
	}
}
